#include <iostream>
#include <map>
using namespace std;

// 使用map
bool JudgeInclude(string& A, string& B){
    map<char, int> mp;
    for(size_t i = 0; i < A.size(); ++i)
        ++mp[A[i]];

    for(size_t i = 0; i < B.size(); ++i){
        if(0 == mp[B[i]]){
            return false;
        } 
        else
            --mp[B[i]];
    }
    return true;
}

int main()
{
    string A, B;
    while(cin >> A >> B){
        if(JudgeInclude(A, B)) 
            cout << "Yes" << endl;
        else 
            cout << "No" << endl;
    }
    return 0;
}